
/*
 * Main.fx
 *
 * Created on 11.09.2009, 22:19:42
 */
 
package javafx179labs.Petrov.Lab1;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.text.Text;
import javafx.scene.text.Font;
import javafx.scene.shape.Circle;
import javafx.scene.paint.Color;
import javafx.scene.shape.Rectangle;
import javafx.scene.shape.Polygon;
import javafx.scene.shape.Line;
import javafx.scene.Group;
import javafx.scene.effect.GaussianBlur;
import javafx.scene.effect.Shadow;
import javafx.scene.effect.Lighting;
import javafx.scene.effect.SepiaTone;
import javafx.scene.transform.Shear;
import javafx.scene.transform.Rotate;
import javafx.scene.transform.Translate;


/**
 * @author Алекс
 */

Stage {
    title: "Application title"
    width: 800
    height: 640
    scene:Scene {
        fill: Color.LIGHTGRAY
        content:[
            Text      {
                font : Font {
                    size : 40
                            }
                fill: Color.GREEN
                x: 380
                y: 20
                content: "Пейзаж"
            effect:  Shadow {
                        color: Color.GREEN
                        radius: 5}
            transforms: Shear { x: 0.6, y : 0.2 }
                   }
            Circle    {
                        centerX: 80, centerY: 100
                        radius: 40
                        fill: Color.YELLOW
            effect: 
                        GaussianBlur {radius: 50}
            transforms: Rotate { pivotX : 2.0, pivotY : 4.0, angle: 2.0 }

                   }
            Group     {
                        content: [
            Line {
                        startX: 80, startY: 100
                        endX: 150, endY: 200
                        strokeWidth: 1
                        stroke: Color.YELLOW
                 }

            Line {
                        startX: 80, startY: 100
                        endX: 200, endY: 150
                        strokeWidth: 1
                        stroke: Color.YELLOW
                }
            Line {
                        startX: 80, startY: 100
                        endX: 210, endY: 100
                        strokeWidth: 1
                        stroke: Color.YELLOW
                }
            Line {
                        startX: 80, startY: 100
                        endX: 200, endY: 50
                        strokeWidth: 1
                        stroke: Color.YELLOW
                }
            Line {
                        startX: 80, startY: 100
                        endX: 150, endY: 10
                        strokeWidth: 1
                        stroke: Color.YELLOW
                }
            Line {
                        startX: 80, startY: 100
                        endX: 100, endY: 0
                        strokeWidth: 1
                        stroke: Color.YELLOW
                }
            Line {
                        startX: 80, startY: 100
                        endX: 100, endY: 220
                        strokeWidth: 1
                        stroke: Color.YELLOW
                }

            Line {
                        startX: 80, startY: 100
                        endX: 50, endY: 220
                        strokeWidth: 1
                        stroke: Color.YELLOW
                }
            Line {
                        startX: 80, startY: 100
                        endX: 10, endY: 170
                        strokeWidth: 1
                        stroke: Color.YELLOW
                }
            Line {
                        startX: 80, startY: 100
                        endX: 0, endY: 120
                        strokeWidth: 1
                        stroke: Color.YELLOW
                }
            Line {
                        startX: 80, startY: 100
                        endX: 0, endY: 70
                        strokeWidth: 1
                        stroke: Color.YELLOW
                }
            Line {
                        startX: 80, startY: 100
                        endX: 25, endY: 15
                        strokeWidth: 1
                        stroke: Color.YELLOW
                }

                        ]
                }
            Rectangle {
                        x: 100, y: 540
                        width: 50, height: 70
                        fill: Color.BROWN
            effect: SepiaTone {
                            level: 1
                    }
                    }
            Polygon   {
                        points : [ 30,540, 125,420, 220,540 ]
                        fill: Color.GREEN
            effect:Lighting {
                                        diffuseConstant: 1.0
                                        specularConstant: 1.0
                                        specularExponent: 20
                                        surfaceScale: 1.5
                                }
                      }
            Polygon   {
                        points : [ 50,470, 125,350, 200,470 ]
                        fill: Color.GREEN
            effect:Lighting {
                                        diffuseConstant: 1.0
                                        specularConstant: 1.0
                                        specularExponent: 20
                                        surfaceScale: 1.5
                                }
                }
            Polygon   {
                        points : [ 60,400, 125,280, 190,400 ]
                        fill: Color.GREEN
            effect:Lighting {
                                        diffuseConstant: 1.0
                                        specularConstant: 1.0
                                        specularExponent: 20
                                        surfaceScale: 1.5
                                }
                }
            Rectangle {
                        x: 650, y: 540
                        width: 50, height: 70
                        fill: Color.BROWN
            effect: SepiaTone {
                            level: 1
                    }


                      }
            Polygon   {
                        points : [ 600,540, 675,420, 750,540 ]
                        fill: Color.GREEN
            effect:Lighting {
                                        diffuseConstant: 1.0
                                        specularConstant: 1.0
                                        specularExponent: 20
                                        surfaceScale: 1.5
                                }
                }
            Polygon   {
                        points : [ 620,470, 675,350, 730,470 ]
                        fill: Color.GREEN
            effect:Lighting {
                                        diffuseConstant: 1.0
                                        specularConstant: 1.0
                                        specularExponent: 20
                                        surfaceScale: 1.5
                                }
                    }
            Polygon   {
                        points : [ 630,400, 675,280, 720,400 ]
                        fill: Color.GREEN
            effect:Lighting {
                                        diffuseConstant: 1.0
                                        specularConstant: 1.0
                                        specularExponent: 20
                                        surfaceScale: 1.5
                                }
                   }
            Rectangle {
                           x: 330, y: 460
                           width: 180, height: 150
                           fill: Color.BLUE
            effect:Lighting {
                                        diffuseConstant: 1.0
                                        specularConstant: 1.0
                                        specularExponent: 20
                                        surfaceScale: 1.5
                                }
                   }
            Polygon   {
                           points : [ 330,460, 420,320, 510,460 ]
                           fill: Color.BROWN
            effect:Lighting {
                                        diffuseConstant: 1.0
                                        specularConstant: 1.0
                                        specularExponent: 20
                                        surfaceScale: 1.5
                                }
                   }
            Rectangle {
                           x: 360, y: 480
                           width: 40, height: 40
                           fill: Color.WHITE
            effect:Lighting {
                                        diffuseConstant: 1.0
                                        specularConstant: 1.0
                                        specularExponent: 20
                                        surfaceScale: 1.5
                                }
            transforms: Translate { x : 5.0, y : 6.0 }
                   }
            Rectangle {
                           x: 435, y: 480
                           width: 40, height: 40
                           fill: Color.WHITE
            effect:Lighting {
                                        diffuseConstant: 1.0
                                        specularConstant: 1.0
                                        specularExponent: 20
                                        surfaceScale: 1.5
                                }
            transforms: Translate { x : 5.0, y : 6.0 }
                   }
                ]
                }
                }








